import request from '@/utils/request'

// 查询股票基本信息列表
export function listBasic(query) {
  return request({
    url: '/stock/basic/list',
    method: 'get',
    params: query
  })
}

// 查询股票基本信息详细
export function getBasic(id) {
  return request({
    url: '/stock/basic/' + id,
    method: 'get'
  })
}

// 新增股票基本信息
export function addBasic(data) {
  return request({
    url: '/stock/basic',
    method: 'post',
    data: data
  })
}

// 修改股票基本信息
export function updateBasic(data) {
  return request({
    url: '/stock/basic',
    method: 'put',
    data: data
  })
}

// 删除股票基本信息
export function delBasic(id) {
  return request({
    url: '/stock/basic/' + id,
    method: 'delete'
  })
}

// 导出股票基本信息
export function exportBasic(query) {
  return request({
    url: '/stock/basic/export',
    method: 'get',
    params: query
  })
}